# -*- coding: utf-8 -*-
import string
import random
from random import choice


def GenPassword(length=8,chars=string.ascii_letters+string.digits):
    return ''.join([choice(chars) for i in range(length)])

def GenUserName(length=8):
    salt = ''.join(random.sample(string.ascii_letters + string.digits, length))
    return salt


print GenPassword(10)
print GenUserName(8)